﻿@model DiarySocial.Models.LoginModel

@{
    Layout = "~/Views/Shared/_LayoutForGuest.cshtml";
    ViewBag.Title = "Log in";
    ViewBag.SiteName = "Diary Social";
}
<section id="content" class="m-t-lg wrapper-md animated fadeInUp">
    <div class="container aside-xl">
        <a class="navbar-brand block" href="@Url.Content("~")">@ViewBag.SiteName</a>
        <section class="m-b-lg">
            <header class="wrapper text-center">
                <strong>Sign in to @ViewBag.SiteName</strong>
            </header>
            @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
            {
                @Html.AntiForgeryToken()
                <div class="text-muted">
                    @Html.ValidationSummary(true)
                </div>
                <div class="list-group">
                    <div class="list-group-item">
                        @Html.TextBoxFor(m => m.UserName, new { @placeholder = "User Name", @class = "form-control no-border" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div class="list-group-item">
                        @Html.PasswordFor(m => m.Password, new { @placeholder = "Password", @class = "form-control no-border" })
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div class="list-group-item">
                        <div class="checkbox">
                            <label for="RememberMe">
                                @Html.CheckBoxFor(m => m.RememberMe)
                                @Html.DisplayNameFor(m => m.RememberMe)
                            </label>
                        </div>
                    </div>
                </div>
                <button type="submit" class="btn btn-lg btn-primary btn-block">Sign in</button>
                <div class="text-center m-t m-b"><a href="#"><small>Forgot password?</small></a></div>
                <div class="line line-dashed"></div>
                <p class="text-muted text-center"><small>Do not have an account?</small></p>
                <a href="@Url.Action("Register")" class="btn btn-lg btn-default btn-block">Create an account</a>
            }
        </section>
    </div>
</section>
@* <section class="social" id="socialLoginForm">
        <h2>Use another service to log in.</h2>
        @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
    </section>*@

@section Scripts {
    @Scripts.Render("~/bundles/bootstrapval")
}